package com.java88.springboot04.service.impl;

import com.java88.springboot04.entity.Dept;
import com.java88.springboot04.mapper.DeptMapper;
import com.java88.springboot04.service.DeptService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
	private DeptMapper deptMapper;

	public DeptServiceImpl(DeptMapper deptMapper) {
		this.deptMapper = deptMapper;
	}

	@Override
	public List<Dept> findAll() {
		return deptMapper.findAll();
	}
}
